package com.hykc.auth.common.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "分页结果对象")
public class PageResult<T> {

    @ApiModelProperty(name = "items" ,value = "返回结果,分页数据列表")
    private List<T> items; // 返回结果

    @ApiModelProperty(name = "total" ,value = "总条数")
    private Long total; //总条数

    @ApiModelProperty(name = "totalPage" ,value = "总页数")
    private Long totalPage; //总页数
}
